 public function delet($answerid)                    Class layer
  { 
     $Query ="DELETE FROM project.answers WHERE  answers.answer_ID='$answerid'";
	 $query=mysql_query($Query) or die(' ');
	 
  }
_______________________________________________________________________________________
include 'connect.php';
include 'class.php';
$answer2= new answer();                                      Logic LAyer
$answer2->answerid=$_POST['ansid'];
$answer2->delet($answer2->answerid);
______________________________________________________________________________
